﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClothingShopping.Data
{
    /// <summary>
    /// 用户权限表
    /// </summary>
    [JsonObject(MemberSerialization.OptIn), Table(DisableSyncStructure = false)]
    public class UserAuthority
    {
        /// <summary>
        /// 用户权限id
        /// </summary>
        [JsonProperty, Column(DbType ="INT",IsIdentity = true, IsPrimary = true)]
        public int ua_id {  get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [JsonProperty, Column(DbType ="INT")]
        public int user_id { get; set; }

        /// <summary>
        /// 权限id
        /// </summary>
        [JsonProperty, Column(DbType = "INT")]
        public int authority_id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(20)")]
        public string? creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonProperty, Column(DbType = "DATETIME")]
        public DateTime? create_time { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(20)")]
        public string? modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [JsonProperty, Column(DbType = "DATETIME")]
        public DateTime? mTime { get; set; }
    }
}
